<template>

  <el-header style="text-align: right; font-size: 12px;" >
    <el-button @click="insertjuese" style="text-align: left;">新增</el-button>
    <el-dropdown>
      <span>{{$store.state.empName}}</span>
      <i class="el-icon-arrow-down" style="margin-right: 15px"></i>
      <el-dropdown-menu slot="dropdown">
        <el-dropdown-item><span @click="loginOut()">退出</span></el-dropdown-item>
      </el-dropdown-menu>
    </el-dropdown>
  </el-header>



</template>

<script>


export default {
  name: "Role",
  data(){
    return{

    }
  },
  methods: {

  },
  created() {
    if (this.$store.state.roleId == 0){
      this.$message('请先登录');
      this.$router.push({name:'Login'});
    }
  }
}
</script>

<style scoped>
.el-header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}
a {
  color: #42b983;
}
</style>
